import TileLayer from "ol/layer/Tile";
import { XYZ } from 'ol/source';
let googleMapLine = {
    initMapLayer: function () {
        let mapLayer = new TileLayer({
            source: new XYZ({
                url: 'http://www.google.com/maps/vt/pb=!1m4!1m3!1i{z}!2i{x}!3i{y}!2m3!1e0!2sm!3i380072576!3m8!2szh-CN!3scn!5e1105!12m4!1e68!2m2!1sset!2sRoadmap!4e0!5m1!1e0'
            }),
        })
        return mapLayer
    }
}
export default googleMapLine
// 高德地图：http://wprd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=7
// 谷歌地图：http://www.google.com/maps/vt/pb=!1m4!1m3!1i{z}!2i{x}!3i{y}!2m3!1e0!2sm!3i380072576!3m8!2szh-CN!3scn!5e1105!12m4!1e68!2m2!1sset!2sRoadmap!4e0!5m1!1e0

